package com.kaibes.imserver.view;

import java.awt.BorderLayout;

import javax.swing.JPanel;

import com.kaibes.imserver.model.data.HtmlData;

public class ServerPanelLog extends JPanel {

	private static final long serialVersionUID = -1431499252078458717L;
	
	/**
	 * Create the panel.
	 */
	private HtmlData data;
	
	public ServerPanelLog() {
		setLayout(new BorderLayout(0, 0));
		data = new HtmlData();
		add(data.getScrollPane(), BorderLayout.CENTER);
	}
	
	public synchronized void addLog(String log){
		data.add(log);
	}
	
	public synchronized void cleanLog(){
		data.cleanData();
	}

}
